
#ifndef _MEMBER_BFile_H_
#define _MEMBER_BFile_H_

#include <cstdio>
#include <BFile>

#ifdef linux
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#endif

#ifdef _WIN32
#include <Windows.h>
#endif

namespace BWE
{
	class member_BFile
	{
	public:
		member_BFile(BFile* file);
		~member_BFile();
        
		BFile*			boss;
        IOMode			mode;
		int				size;
		BString			fileName;
#ifdef linux
		int				handle;
#endif
#ifdef _WIN32
        FILE*			handle;
#endif
	};
}

#endif

